package lab.bmp.track;

import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;
import lab.bmp.artist.ArtistPK;
import lab.bmp.genre.GenrePK;
import lab.bmp.studio.StudioPK;

/**
 *
 * @author Smike
 */
public interface TrackLocalHome extends EJBLocalHome {
    
    public TrackLocal create(Integer id, Collection<GenrePK> genres, Collection<ArtistPK> artists, StudioPK studio, String name, Long length, Integer year) throws CreateException;
    public TrackLocal findByPrimaryKey(TrackPK key) throws FinderException;
    public Collection findAll() throws FinderException;

}
